﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Media;

namespace SpaceArcade
{
    
    class GameSound
    {
        SoundPlayer blast;
        SoundPlayer UppedBlast;
        SoundPlayer BonusPicked;
        SoundPlayer HurtSoundWithShield;
        SoundPlayer HurtSound;
        SoundPlayer explosion;

        public GameSound()
        {
            blast = new SoundPlayer(GamePath.SoundPath + "LASER.wav");
            UppedBlast = new SoundPlayer(GamePath.SoundPath + "PowerBlast.wav");
            BonusPicked = new SoundPlayer(GamePath.SoundPath + "PowerupPick.wav");
            HurtSoundWithShield = new SoundPlayer(GamePath.SoundPath + "Hit_Hurt.wav");
            HurtSound = new SoundPlayer(GamePath.SoundPath + "Hit_Hurt6.wav");
            explosion = new SoundPlayer(GamePath.SoundPath + "explosion-01.wav");
        }

        public void BlastSound()
        {            
            blast.Play();
        }

        public void PowerBlastSound()
        {
            UppedBlast.Play();
        }

        public void PowerUpSound()
        {
            BonusPicked.Play();
        }

        public void PlayHurtSound()
        {
            HurtSound.Play();
        }

        public void PlayHurtSoundWithShield()
        {
            HurtSoundWithShield.Play();
        }

        public void PlayExplisionSound()
        {
            explosion.Play();
        }
    }
}
